


code = '''

def foo():
    print ('run')
    return 1234

foo
'''


res = eval("1+3+3")
res2 = exec("1+1+2")
print(res,res2)

print(exec(code))
# exec 支持多行但是拿不到返回值值